{{if gt .paginator.PageNums 1}}
<div class="pagenation">
                {{ if .paginator.HasPrev }}
                    <a href="{{.paginator.PageLinkPrev}}">上一页</a>
                {{ else }}
                    <a href="javascript:;">上一页</a>
                {{end}}
                {{range $index, $page := .paginator.Pages}}
                    {{ if eq $page 0 }}
                        <a>......</a>
                    {{else}}
                        <a href="{{$.paginator.PageLink $page}}" class="{{if $.paginator.IsActive .}} active {{end}}">{{$page}}</a>
                    {{end}}
                {{end}}
                {{ if .paginator.HasNext}}
                    <a href="{{.paginator.PageLinkNext}}">下一页</a>
                {{else}}
                    <a href="javascript:;">下一页</a>
                {{end}}
            </ul>
        </div>
    </div>
</div>
{{end}}
